MbasicButton – Labeled button without any attached panel.
Creation: MBasicButton_New(text$, x, y, pixelwidth)
text$ - The text that is displayed on the button.
x – Pixel X coordinate for the top left corner of the button.
x – Pixel Y coordinate for the top left corner of the button.
pixelwidth – The width of the button in pixels.
Functions:
MbasicButton_ClearSelected(index)
Clears the pressed status of the button.
MbasicButton_Delete(index)
Deletes the button.
MbasicButton_Disable(index)
Disables the button.
MbasicButton_Draw(index)
Draws the button to screen.
MbasicButton_Enable(index)
Enables the button.
MbasicButton_GetSelected(index)
Returns whether button is pressed status. 0=no ; 1=yes
MBasicButton_SetText(index, text$)
Sets the text on the button.